package com.hh.gen.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @Author: sunshine
 * @Description: 代码自动生成配置类
 */
@Data
@Component
@ConfigurationProperties(prefix = "gen")
@PropertySource(value = {"classpath:generator.properties"}, encoding = "UTF-8")
public class CodeGeneratorConfig {

    /**
     * 作者
     */
    public String author;

    /**
     * 生成包路径
     */
    public String packageName;

    /**
     * 自动去除表前缀，默认是false
     */
    public boolean autoRemovePre;

    /**
     * 表前缀(类名不会包含表前缀)
     */
    public String tablePrefix;

    /**
     * 私有构造方法
     */
    private CodeGeneratorConfig() {

    }
}
